-
Notifications
You must be signed in to change notification settings - Fork 11
Issues/9618 login with username #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// error message when the new view controller appears. | ||
| /// | ||
| @objc func showSelfHostedUsernamePasswordAndError(_ error: Error) { | ||
| loginFields.siteAddress = "http://wordpress.com" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicky: this should use https://wordpress.com
nheagy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one is good to go 😀
![]()
|
Thanks @nheagy and @mindgraffiti !! |
|
👋, I'm trying to investigate and fix the issue for the Android side and I'm having trouble convincing the server to send the I wonder, were you able to verify that the server does indeed send this error type while developing this PR? Any steps to recreate the situation? What I've tried so far was to make the backend (in my sandbox) fail the Notice that the error is Any clues appreciated :) cc @aerych |
|
I tried out WPiOS (v12.0) against my sandbox and verified that if I rig the sandbox to always fail suspicious_email_login() (returning true) then the same response comes through Charles (Proxy) to the app. So, at this point, I'm not sure whether the issue is really fixed by this PR 🤔. |
|
The wp.com changes have taken place: p1555065019002100-slack-C04B0MQUM. (Thank you @hypest!) Can confirm, on the WCiOS side, I can receive the error: |


Refs: wordpress-mobile/WordPress-iOS#9618
This PR adds custom handling for the
email_login_not_allowederror that is sometimes occurs when logging into WordPress.com when a user's email address meets the criteria for being "suspicious". In these cases we take the user to the LoginSelfHostedViewController, but configured to log into WordPress.com as the site. This allows the user to proceed with their username/password credentials rather than being stuck on the email address screen without a clear path forward.With these changes we:
Example at C02Q9GACF/p1547220737194300-slack-ios-osx-dev | p1547234802205800-slack-C02Q9GACF
Pinging both @mindgraffiti and @nheagy for sanity checks since this is a shared library.